package com.ssn.composite.file;

public class Client {
    public static void main(String[] args) {
        Component root = new Dir("root");
        Component d_one = new Dir("d_one");
        Component d_two = new Dir("d_two");
        Component f_one = new File("f_one");
        Component f_two = new File("f_two");
        Component f_three = new File("f_three");
        root.add(d_one);
        root.add(d_two);
        root.add(f_one);
        d_one.add(f_two);
        d_two.add(f_three);
        root.click();
        d_two.click();
        f_one.click();

    }
}
